import request from '@/utils/request'

export default {
  getGoodsList(params) {
    return request.get('/goods/list', { params })
  },
  getGoodsDetail(id) {
    return request.get(`/goods/detail/${id}`)
  },
  searchGoods(keyword) {
    return request.get(`/goods/search?keyword=${keyword}`)
  }
}